package com.alex.es.repository;

import com.alex.es.bean.User;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

public interface UserRepository extends ElasticsearchRepository<User, String> {

    List<User> findByFirstNameLike(String firstName);

    List<User> findByLastNameLike(String lastName);
}
